/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.mapper.hr.employment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.plian.system.entity.hr.employment.EnterpriseEmployment;
import com.plian.system.vo.hr.employment.EnterpriseRecruitmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 企业用工管理主表 Mapper 接口
 *
 * @author gangan
 * @since 2019-11-12
 */
public interface EnterpriseEmploymentMapper extends BaseMapper<EnterpriseEmployment> {

	/**
	 * 招聘信息统计表-用工信息部分
	 * @param companyNameIds 单位Id
	 * @param planAttributeIds 用工属性
	 * @param enterpriseTimeStart 用工单据时间起始
	 * @param enterpriseTimeEnd 用工单据时间结束
	 * @return List<EnterpriseRecruitmentVO>
	 */
	List<EnterpriseRecruitmentVO> attributeReportPage(@Param("companyNameIds") List<String> companyNameIds,
													  @Param("planAttributeIds") List<String> planAttributeIds,
													  @Param("enterpriseTimeStart") Date enterpriseTimeStart,
													  @Param("enterpriseTimeEnd") Date enterpriseTimeEnd);

	/**
	 * 用工统计表
	 * @param companyNameIds 单位Id
	 * @param departmentNameId 部门Id
	 * @param operatingPost 工作岗位
	 * @param educationalIds 学历Id
	 * @param major 专业
	 * @param startYear 起始年度(即查询年度)
	 * @param endYear 结束年度(即查询年度+1)
	 * @return List<EnterpriseEmploymentVO>
	 */
	List<EnterpriseEmployment> reportDataPage(@Param("companyNameIds") List<String> companyNameIds,
												@Param("departmentNameId") String departmentNameId,
												@Param("operatingPost") String operatingPost,
												@Param("educationalIds") List<String> educationalIds,
												@Param("major") String major,
												@Param("startYear") String startYear,
												@Param("endYear") String endYear);


}
